# !usr/bin/env python
# -*- coding:utf-8 _*-
"""
@Author:张广勤
@Web site: https://www.tunan.wang
@Github:www.github.com
 
@File:dao_baihua1_0.py
@Time:2024/9/19 11:10

@Motto:不积跬步无以至千里，不积小流无以成江海！
"""

import streamlit as st
from daodejing.dao_dict3_0 import dao_dict

# print(dao_dict())
daodict = list(dao_dict())
# print(daodict)
selected_item = st.sidebar.selectbox("道德经原文及白话文",daodict)

if selected_item:
    st.markdown(f"### {selected_item} ")
    st.markdown(f"###### {dao_dict()[selected_item]['original']}\n")
    # st.markdown("###### " + dao_dict()[selected_item] + "\n")
    # st.markdown("##### 原文及白话文：")
    # for item in dao_dict():
    #     print(item)
    #     print(type(item))
    #     st.markdown("###### " + dao_dict()[item] + "\n")
    # st.markdown("***")